home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
winter_challenge.swf
/
scripts
/
frame_8
/
PlaceObject2_144_269
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2011-08-19
|
968b
|
37 lines
onClipEvent(enterFrame){
if(_root.ATV_keyBlock == 0 && _root.gameInProgress == 1 && !Key.isDown(38))
{
if(_root.engineSound.myAction != "brk" && this._currentframe != 2)
{
_root.engineSound.myAction = "dec";
}
}
if(_root.ATV_keyBlock == 0 && _root.gameInProgress == 1 && Key.isDown(38))
{
if(_root.engineSound.myAction != "brk")
{
_root.engineSound.myAction = "acc";
}
}
if(myHolder != myAction)
{
switch(myAction)
{
case "acc":
this.gotoAndStop(myAction);
break;
case "dec":
this.gotoAndStop(myAction);
break;
case "brk":
_root.acc.stop();
_root.dec.stop();
_root.minimo.stop();
_root.massimo.stop();
this.gotoAndStop("minimo");
myAction = "default1";
}
myHolder = myAction;
}
}